import java.util.Scanner;

/**
 * @author 8zhazha8
 * @create 2021-04-24-20:48
 */
public class HomeWork3 {

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入第一个数字");
        float a=scanner.nextFloat();
        System.out.println("输入第二个数字");
        float b=scanner.nextFloat();
        float d=c(a,b);
        System.out.println("最大值是："+d);
    }
    public static float c(float a,float b) {
        float c;
        if (a>b) {
            c=a;
        }
        else {
            c=b;
        }
        return c;
    }
}
